clientService.$inject = ['$http'];

function clientService($http) {
    return {
        getClientByCname:getClientByCname
    }

    function getClientByCname(cname, callback) {
        $http.get("/cv4Backend/client/getClientByCname/"+cname).then(function(res) {
            callback(null, res.data);
        }).catch(err => console.log(err));
    }
}

module.exports = clientService;